<template>
	<div>
			<el-form-item v-if="$check_register_field('add','registered_name','/developers/view')" label="注册姓名" prop="registered_name">
				<el-input id="registered_name" v-model="form['registered_name']" placeholder="请输入注册姓名" ></el-input>
				</el-form-item>
				<el-form-item v-if="$check_register_field('add','registered_gender','/developers/view')" label="注册性别" prop="registered_gender">
				<el-select id="registered_gender" v-model="form['registered_gender']">
			<el-option v-for="o in list_registered_gender" :key="o" :label="o" :value="o">
			</el-option>
		</el-select>
				</el-form-item>
				<el-form-item v-if="$check_register_field('add','registration_age','/developers/view')" label="注册年龄" prop="registration_age">
				<el-input-number id="registration_age" v-model.number="form['registration_age']"></el-input-number>
				</el-form-item>
				<el-form-item v-if="$check_register_field('add','register_mobile_phone','/developers/view')" label="注册手机" prop="register_mobile_phone">
				<el-input id="register_mobile_phone" v-model="form['register_mobile_phone']" placeholder="请输入注册手机" type="tel">
		</el-input>
				</el-form-item>
	
	</div>
</template>

<script>
	import mixin from "@/mixins/component.js";

	export default {
		mixins: [mixin],
		props:{

			form:{
				type: Object,
				default: function(){
					return {
							"registered_name":  '' ,
								"registered_gender":  '' ,
								"registration_age":  0 ,
								"register_mobile_phone":  '' ,
						}
				}
			},

		},
		data() {
			return {
				field: "developers_id",
				url_add: "~/api/developers/add?",
				url_set: "~/api/developers/set?",
				url_upload: "~/api/developers/upload?",

									list_registered_gender: ['男','女'],
										rules: {
					"registered_name": [    {required: true,message: '注册姓名不能为空'},  ],
					"registered_gender": [    {required: true,message: '注册性别不能为空'},  ],
					"registration_age": [     {type: 'number',required: true,message: '注册年龄不能为空'},  ],
					"register_mobile_phone": [   {validator: this.$is_phone,trigger: 'blur'},   {required: true,message: '注册手机不能为空'},  ],
				}

			}
		},
		methods: {
	
	
		
	
		
	
		
	
			},
		created() {
										}
	}
</script>
